package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品评论表对象 c_goodscomments
 * 
 * @author ruoyi
 * @date 2024-12-25
 */
public class Goodscomments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品评论id */
    private String goodscommentsId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 商品id */
    @Excel(name = "商品id")
    private String goodsId;

    /** 文字内容 */
    @Excel(name = "文字内容")
    private String text;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 评分 */
    @Excel(name = "评分")
    private BigDecimal score;

    public void setGoodscommentsId(String goodscommentsId) 
    {
        this.goodscommentsId = goodscommentsId;
    }

    public String getGoodscommentsId() 
    {
        return goodscommentsId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodscommentsId", getGoodscommentsId())
            .append("userId", getUserId())
            .append("goodsId", getGoodsId())
            .append("text", getText())
            .append("img", getImg())
            .append("score", getScore())
            .append("createTime", getCreateTime())
            .toString();
    }
}
